package nl.hva.three2learn.dao;

import java.util.List;

import nl.hva.three2learn.model.User;

public interface UserDao {

	User findByEmail(String email);
	
	User findById(long userId);
	
	// TODO: Should this method filter out disabled students?
	List<User> findAllUsers();
	
	/**
	 * Returns all users that have their isActive flag
	 * set to true.
	 * @return A list of active users
	 */
	List<User> findAllActiveUsers();
	
	void save(User user);
	
	void enable(User user);
	
	void disable(User user);
}
